#ifndef GRID_H
#define GRID_H

#include <vector>
#include <cmath>

class Grid {
public:
    Grid(int n, double xmin, double xmax, double ymin, double ymax);
    int getN() const;
    double getX(int i) const;
    double getY(int j) const;
    double geth() const;
    bool isInside(double x, double y) const;

private:
    int n;  // Number of grid points along each dimension
    double xmin, xmax, ymin, ymax;
    double h;  // Grid spacing
};

#endif